#!/bin/bash


##1. prepare for caffe
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install libopenblas-dev liblapack-dev libatlas-base-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install git cmake build-essential
sudo apt-get install cmake-curses-gui
##

##2. caffe
git clone https://github.com/BVLC/caffe.git
##

##set caffe-python
sudo wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py 
sudo apt-get install python-matplotlib python-numpy python-pil python-scipy
sudo apt-get install build-essential cython
sudo apt-get install python-skimage
sudo apt-get install python-protobuf 
##
